﻿/*
 * Author: .net follower (http://dotnetfollower.com)
 * Copyright: � 2012 .net follower 
 * Usage: software is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebLoading;
using System.Drawing;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            GraphicalWeatherLoader graphicalWeatherLoader = new GraphicalWeatherLoader("32801");
            List<GraphicalWeatherLoader.DailyMaximumTemperature> temperatures = graphicalWeatherLoader.LoadData();
            if (temperatures != null)
                foreach (GraphicalWeatherLoader.DailyMaximumTemperature temperature in temperatures)
                    Console.WriteLine(string.Format("{0} - {1} Fahrenheit", temperature.Day.ToShortDateString(), temperature.Temperature));

            GeoNamesCitiesLoader geoNamesCitiesLoader = new GeoNamesCitiesLoader();
            List<GeoNamesCitiesLoader.City> cities = geoNamesCitiesLoader.LoadData();
            if (cities != null)
                foreach (GeoNamesCitiesLoader.City city in cities)
                    Console.WriteLine(string.Format("{0} [Population: {1}]", city.ToponymName, city.Population));

            ImageLoader imageLoader = new ImageLoader("http://dotnetfollower.com/wordpress/wordpress-content/uploads/2012/06/All_Site_Content_Links.png");
            Image img = imageLoader.LoadData();
        }
    }
}
